package com.bot.backend.controller.user.snake;

import com.bot.backend.service.user.snake.RemoveSnakeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class RemoveSnakeController {
    @Autowired
    private RemoveSnakeService removeSnakeService;

    @PostMapping("/user/snake/remove")
    public Map<String, String> removeSnake(@RequestParam Map<String, String> data) {
        return removeSnakeService.removeSnake(data);
    }
}
